package com.itheima.config;

import com.itheima.service.DeptService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.Date;

@Configuration
public class CommonConfig {

    @Bean
    public Date date(DeptService deptService){
        System.out.println(deptService);
        return new Date();
    }
}
